import Http from './axios';
import api from './api';
let server = import.meta.env.VITE_APP_BASE_API || '';
if (process.env.NODE_ENV !== 'production') {
  server = '';
}
const host = server;
let obbj = {};
for (let key in api) {
  obbj[`${key}`] = api[key];
  for (let item in api[key]) {
    obbj[`${key}`][`${item}`] = host + api[key][item];
  }
}

let obj = {
  ...obbj
};

export default Http(obj);
